import { AssetPermissionsTable } from '@/components/blocks/asset-permissions-table/asset-permissions-table';
import { assetConfig } from '@/lib/config/assets';
import type { Metadata } from 'next';
import type { Address } from 'viem';
import { TableClient } from './_components/table-client';

export const metadata: Metadata = {
  title: 'Permissions',
  description: 'Manage Permissions for the stablecoin.',
};

export default async function StablecoinTokenPermissionsPage({ params }: { params: Promise<{ id: string }> }) {
  const { id } = await params;

  return (
    <AssetPermissionsTable assetConfig={assetConfig.stablecoin} asset={id as Address}>
      <TableClient asset={id as Address} />
    </AssetPermissionsTable>
  );
}
